#include"stack.h"

void test1() {
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("%d\n", StackSize(&st));
	while (!StackEmpty(&st)) {
		int top = StackTop(&st);
		printf("%d", top);
		StackPop(&st);
	}

	StackDestroy(&st);
}


int main() {
	test1();
	return 0;

}